package com.tiger.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @author HuXuehao (StudiousTiger)
 * @desc 这个类的作用是
 * @date 2022/3/17
 */
@Configuration
public class WebSocketConfig {
    @Bean
    // 注入 ServerEndpointExporter 到 spring，自动注册【使用了@ServerEndpoint】的bean
    public ServerEndpointExporter serverEndpointExporter(){

        return new ServerEndpointExporter();
    }
}
